package com.leyou.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.entity.Spu;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.dto.PageDTO;

import java.util.List;

public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> pageQuery(Integer brandId, Integer categoryId, Integer spuId, Integer currentPage, Integer pageSize, Boolean saleable);

    void addGoods(SpuDTO spuDTO);

    void updateSaleable(Long id, Boolean saleable);

    SpuDTO getGoodById(Long id);

    void updateGoods(SpuDTO spuDTO);

    SpuDTO getSpuBySpuId(Long id);

    List<SpecParamDTO> getAllSpecParamBySpuId(Long id, Boolean searching);

}